package org.example.liaoxuefeng.my;

import org.example.liaoxuefeng.Engine;

/**
 * @author: 默苍璃
 * @date: 2024-07-02 11:45
 */
public abstract class Car {
    // 引用Engine:
    protected Engine engine;

    protected Brand brand;

    public Car(Engine engine, Brand brand) {
        this.engine = engine;
        this.brand = brand;
    }

    public abstract void drive();
}
